
**************************************************************************************
*                           Replication Data for                  
*               Only for Some Women: Experimental evidence
*          on Descriptive Representation and Political Engagement
**************************************************************************************




**************************************************************************************
* Study 1            
**************************************************************************************



clear

set more off

/*
This dofile will reproduce each table and figure used in the latest draft of our paper
*/

/*load data*/

***** Demographics and pretreatment questions ******

tab age
tab birthplace
tab uscit 
tab ethnicity
tab gender
tab polint1
tab religion
tab income
tab education

gen high_edu=0
replace high_edu=1 if education==5
replace high_edu=1 if education==6
replace high_edu=1 if education==7


* PID *

tab pid_combo

gen democrat=0
replace democrat=1 if pid_combo==0
replace democrat=1 if pid_combo==1
replace democrat=1 if pid_combo==2

gen republican=0
replace republican =1 if pid_combo==4
replace republican =1 if pid_combo==5
replace republican =1 if pid_combo==6

gen pid_binary=.
replace pid_binary=1 if democrat==1
replace pid_binary=0 if republican==1
label define pid_binary 1 "democrat" 0 "republican"
label value pid_binary pid_binary

* Ideology *

ta ideology

*** Treatment groups ***

gen treatment=.
replace treatment=1 if mlib==1
replace treatment=2 if flib==1
replace treatment=3 if mcon==1
replace treatment=4 if fcon==1
replace treatment=5 if mneut==1
replace treatment=6 if fneut==1
label define treatment 1 "MaleLiberal" 2 "FemaleLiberal" 3 "MaleConservative" 4 "Female Conserverative" 5 "MaleNeutral" 6 "FemaleNeutral" 
label values treatment treatment
sum treatment
tab treatment, missing
drop if missing(treatment)
sum treatment
tab treatment

gen female_neutral=0
replace female_neutral=1 if fneut==1
gen male_neutral=0
replace male_neutral=1 if mneut==1
gen female_liberal=0
replace female_liberal=1 if flib==1
gen male_liberal=0
replace male_liberal=1 if mlib==1
gen female_conservative=0
replace female_conservative=1 if fcon==1
gen male_conservative=0
replace male_conservative=1 if mcon==1

gen neutral=0
replace neutral=1 if treatment==5
replace neutral=1 if treatment==6

*** PID alignment ***

gen match_pid=0
replace match_pid=1 if female_liberal==1 & democrat==1
replace match_pid=1 if male_liberal==1 & democrat==1
replace match_pid=1 if female_conservative==1 & republican==1
replace match_pid=1 if male_conservative==1 & republican==1

*** Policy attitudes ***

label variable afaction "afaction"
recode afaction (1=1) (2=3) (3=2) 
label define afaction 1 "favor" 2 "neither" 3 "oppse"
label values afaction afaction
sum afaction
tab afaction

label variable incometax "incometax"
recode incometax (1=1) (2=3) (3=2)
label define incometax 1 "favor" 2 "neither" 3 "oppse"
label values incometax incometax
sum incometax
tab incometax

label variable birthcon "birthcon"
recode birthcon (1=1) (2=3) (3=2)
label define birthcon 1 "favor" 2 "neither" 3 "oppse"
label values birthcon birthcon
sum birthcon
tab birthcon

label variable voucher "voucher"
recode voucher (1=1) (2=3) (3=2)
label define voucher 1 "favor" 2 "neither" 3 "oppse"
label values voucher voucher
sum voucher
tab voucher

/*matching issue stance*/
gen match_afaction=0
replace match_afaction=1 if afaction==1 & female_liberal==1
replace match_afaction=1 if afaction==1 & male_liberal==1
replace match_afaction=1 if afaction==3 & female_conservative==1
replace match_afaction=1 if afaction==3 & male_conservative==1
replace match_afaction=1 if afaction==3 & male_conservative==1
replace match_afaction=. if neutral==1

gen match_incometax=0
replace match_incometax=1 if incometax==1 & female_conservative==1
replace match_incometax=1 if incometax==1 & male_conservative==1
replace match_incometax=1 if incometax==3 & female_liberal==1
replace match_incometax=1 if incometax==3 & male_liberal==1
replace match_incometax=. if neutral==1


gen birthcon_match=0
replace birthcon_match=1 if birthcon==1 & female_liberal==1
replace birthcon_match=1 if birthcon==1 & male_liberal==1
replace birthcon_match=1 if birthcon==3 & female_conservative==1
replace birthcon_match=1 if birthcon==3 & male_conservative==1
replace birthcon_match=. if neutral==1


gen match_voucher=0
replace match_voucher=1 if voucher==1 & female_conservative==1
replace match_voucher=1 if voucher==1 & male_conservative==1
replace match_voucher=1 if voucher==3 & female_liberal==1
replace match_voucher=1 if voucher==3 & male_liberal==1
replace match_voucher=. if neutral==1


gen match_issues=match_afaction+match_incometax+birthcon_match+match_voucher
tab match_issues

*** Group Identity ***


label variable groupid "groupid"
recode groupid (1=5) (2=4) (3=3) (4=2) (5=1)
label define groupid 1 "notimport" 2 "litimport" 3 "modimport" 4 "veryimport" 5 "eximport" 
sum groupid
tab groupid

gen mlinked_combo=.
replace mlinked_combo=1 if mlinked==2
replace mlinked_combo=2 if mlinked==1&mlinked2==3
replace mlinked_combo=3 if mlinked==1&mlinked2==2
replace mlinked_combo=4 if mlinked==1&mlinked2==1
sum mlinked_combo
tab mlinked_combo
recode mlinked_combo 1/2=1 3=2 4=3
tab mlinked_combo

gen wmlinked_combo=.
replace wmlinked_combo=1 if wmlinked==2
replace wmlinked_combo=2 if wmlinked==1&wlinked2==3
replace wmlinked_combo=3 if wmlinked==1&wlinked2==2
replace wmlinked_combo=4 if wmlinked==1&wlinked2==1
sum wmlinked_combo
tab wmlinked_combo
recode wmlinked_combo 1/2=1 3=2 4=3
tab wmlinked_combo

gen linked_combo=.
replace linked_combo=1 if mlinked_combo==1|wmlinked_combo==1
replace linked_combo=2 if mlinked_combo==2|wmlinked_combo==2
replace linked_combo=3 if mlinked_combo==3|wmlinked_combo==3
tab linked_combo

gen shared_gender=0
replace shared_gender=1 if female_neutral==1 & gender==1
replace shared_gender=1 if female_liberal==1 & gender==1
replace shared_gender=1 if female_conservative==1 & gender==1
replace shared_gender=1 if male_neutral==1 & gender==0
replace shared_gender=1 if male_liberal==1 & gender==0
replace shared_gender=1 if male_conservative==1 & gender==0
tab shared_gender

gen fem_shared_gender=gender*shared_gender

gen shared_linked=shared_gender*linked_combo
gen linked_gender=gender*linked_combo
gen shared_linked_gender=gender*shared_gender*linked_combo

gen shared_edu=shared_gender*high_edu


*** Participation Battery ***

label variable partbat_1 "partbat_1"
replace partbat_1=1 if partbat_1==1
replace partbat_1=0 if partbat_1==2
label define partbat_1 1 "Yes" 0 "No"
label values partbat_1 partbat_1
sum partbat_1
tab partbat_1

label variable partbat_2 "partbat_2"
replace partbat_2=1 if partbat_2==1
replace partbat_2=0 if partbat_2==2
label define partbat_2 1 "Yes" 0 "No"
label values partbat_2 partbat_2
sum partbat_2
tab partbat_2

label variable partbat_3 "partbat_3"
replace partbat_3=1 if partbat_3==1
replace partbat_3=0 if partbat_3==2
label define partbat_3 1 "Yes" 0 "No"
label values partbat_3 partbat_3
sum partbat_3
tab partbat_3

label variable partbat_4 "partbat_4"
replace partbat_4=1 if partbat_4==1
replace partbat_4=0 if partbat_4==2
label define partbat_4 1 "Yes" 0 "No"
label values partbat_4 partbat_4
sum partbat_4
tab partbat_4

label variable partbat_5 "partbat_5"
replace partbat_5=1 if partbat_5==1
replace partbat_5=0 if partbat_5==2
label define partbat_5 1 "Yes" 0 "No"
label values partbat_5 partbat_5
sum partbat_5
tab partbat_5

* prior participation variable made from battery above, 1 is if did prior participate, 0 if no *
gen priorpart=partbat_1+partbat_2+partbat_3+partbat_4+partbat_5
replace priorpart=1 if partbat_1==1
replace priorpart=1 if partbat_2==1
replace priorpart=1 if partbat_3==1
replace priorpart=1 if partbat_4==1
replace priorpart=1 if partbat_5==1
tab priorpart
sum priorpart

*** Manipulation checks ***

gen repgender_correct=0
replace repgender_correct=0
replace repgender_correct=1 if repgender==2 & mlib==1
replace repgender_correct=1 if repgender==2 & mcon==1
replace repgender_correct=1 if repgender==2 & mneut==1
replace repgender_correct=1 if repgender2==1 & mlib2==1
replace repgender_correct=1 if repgender2==1 & mcon2==1
replace repgender_correct=1 if repgender2==1 & mneut==1
replace repgender_correct=1 if repgender==3 & flib==1
replace repgender_correct=1 if repgender==3 & fcon==1
replace repgender_correct=1 if repgender==3 & fneut==1
replace repgender_correct=1 if repgender2==2 & flib2==1
replace repgender_correct=1 if repgender2==2 & fcon2==1
replace repgender_correct=1 if repgender2==2 & fneut==1
tab repgender_correct


*** Policy position awareness ***
/*did rep support or oppose requiring birth control as part of health plan*/
gen birthcontrol_correct=0
replace birthcontrol_correct=1 if repissue==1 & mlib==1
replace birthcontrol_correct=1 if repissue==1 & flib==1
replace birthcontrol_correct=1 if repissue==2 & fcon==1
replace birthcontrol_correct=1 if repissue==2 & mcon==1
replace birthcontrol_correct=1 if repissue==3 & fneut==1
replace birthcontrol_correct=1 if repissue==3 & mneut==1
replace birthcontrol_correct=1 if repissue2==1 & mlib==1
replace birthcontrol_correct=1 if repissue2==1 & flib==1
replace birthcontrol_correct=1 if repissue2==2 & fcon==1
replace birthcontrol_correct=1 if repissue2==2 & mcon==1
replace birthcontrol_correct=1 if repissue2==3 & fneut==1
replace birthcontrol_correct=1 if repissue2==3 & mneut==1
tab birthcontrol_correct


*** Descriptives on remaining variables ***
label variable prplcy "If you lived in this district, what is the likelihood that you would contact this representative to express your policy views?"
recode prplcy (4=1) (6=2) (7=3) (8=4)
label define prplcy 1 "Not at all likely" 2 "Somewhat likely" 3 "Likely" 4 "Very Likely"
label values prplcy prplcy
tab prplcy
sum prplcy

label variable prgovas "If you lived in this district, what is the likelihood that you would contact this representative if you had a problem that required government assistance?"
label define prgovas 1 "Not at all likely" 2 "Somewhat likely" 3 "Likely" 4 "Very Likely"
label values prgovas prgovas
tab prgovas
sum prgovas

label variable prdonate "If you lived in this district, what is the likelihood that you would donate to this representative's campaign?"
label define prdonate 1 "Not at all likely" 2 "Somewhat likely" 3 "Likely" 4 "Very Likely"
label values prdonate prdonate
tab prdonate
sum prdonate

label variable prthm "If you lived in this district, what is the likelihood that you would attend a town hall meeting with the representative?"
label define prthm 1 "Not at all likely" 2 "Somewhat likely" 3 "Likely" 4 "Very Likely"
label values prthm prthm
tab prthm
sum prthm

label variable prvote "If you lived in this district, what is the likelihood that you would vote in the next election?"
label define prvote 1 "Not at all likely" 2 "Somewhat likely" 3 "Likely" 4 "Very Likely"
label values prvote prvote
tab prvote
sum prvote

*** Time-based variable ***

factor prplcy prgovas prthm, pcf
rotate
predict time_based



**************************************************************************************
*Table 1: Effect of a Descriptive Representative on Likely Political Engagement among 
*those in the Neutral Conditions
**************************************************************************************

reg prvote shared_gender if neutral==1
reg prvote shared_gender if neutral==1 & gender==0
reg prvote shared_gender if neutral==1 & gender==1

reg prdonate shared_gender if neutral==1
reg prdonate shared_gender if neutral==1 & gender==0
reg prdonate shared_gender if neutral==1 & gender==1

reg time_based shared_gender if neutral==1
reg time_based shared_gender if neutral==1 & gender==0
reg time_based shared_gender if neutral==1 & gender==1

** Footnote 14 **

oprobit prvote shared_gender if neutral==1
oprobit prvote shared_gender if neutral==1 & gender==0
oprobit prvote shared_gender if neutral==1 & gender==1

oprobit prdonate shared_gender if neutral==1
oprobit prdonate shared_gender if neutral==1 & gender==0
oprobit prdonate shared_gender if neutral==1 & gender==1

oprobit time_based shared_gender if neutral==1
oprobit time_based shared_gender if neutral==1 & gender==0
oprobit time_based shared_gender if neutral==1 & gender==1

**************************************************************************************
*Figure 1: Predicted Likelihood of Voting by Experimental Condition and Gender-linked 
*Fate among Women
**************************************************************************************

regress prvote shared_gender##c.linked_combo if neutral==1 & gender==1
margins shared_gender, over(linked_combo)
levelsof linked_combo, local(groups)
foreach g of local groups { 
margins shared_gender if linked_combo==`g' 
marginsplot, name(mp`g', replace) title("linked_combo = `g'")
}
graph combine mp1 mp2 mp3, cols(3)


**************************************************************************************
*Figure 2: Predicted Likelihood of Donating by Experimental Condition and by Gender- 
*Linked Fate among Women
**************************************************************************************

regress prdonate shared_gender##c.linked_combo if neutral==1 & gender==1
margins shared_gender, over(linked_combo)
levelsof linked_combo, local(groups)
foreach g of local groups { 
margins shared_gender if linked_combo==`g' 
marginsplot, level(90) name(mp`g', replace) title("linked_combo = `g'")
}
graph combine mp1 mp2 mp3, cols(3)

**************************************************************************************
*Figure 3: Predicted Value on Time-Based Activities by Experimental Condition and   
*Gender-Linked Fate among Women
**************************************************************************************

regress time_based shared_gender##c.linked_combo if neutral==1 & gender==1
margins shared_gender, over(linked_combo)
levelsof linked_combo, local(groups)
foreach g of local groups { 
margins shared_gender if linked_combo==`g' 
marginsplot, level(90) name(mp`g', replace) title("linked_combo = `g'")
}
graph combine mp1 mp2 mp3, cols(3)

** Footnote 17 **

reg prvote shared_gender match_pid if neutral==0 & gender==1
reg prdonate shared_gender match_pid if neutral==0 & gender==1
reg time_based shared_gender match_pid if neutral==0 & gender==1

reg prvote shared_gender linked_combo shared_linked match_pid if gender==1 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked match_pid if gender==1 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked match_pid if gender==1 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked


**************************************************************************************
*Figure 4.1: Predicted Value on Donating by Experimental Condition and Gender-Linked 
*Fate among Women with Policy Information
**************************************************************************************

regress prdonate shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
margins shared_gender, over(linked_combo)
levelsof linked_combo, local(groups)
foreach g of local groups { 
margins shared_gender if linked_combo==`g' 
marginsplot, level(90) name(mp`g', replace) title("linked_combo = `g'")
}
graph combine mp1 mp2 mp3, cols(3)

**************************************************************************************
*Figure 4.2: Predicted Value on Time-Based Acitivites by Experimental Condition and 
* Gender-Linked Fate among Women with Policy Information
**************************************************************************************


regress time_based shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
margins shared_gender, over(linked_combo)
levelsof linked_combo, local(groups)
foreach g of local groups { 
margins shared_gender if linked_combo==`g' 
marginsplot, level(90) name(mp`g', replace) title("linked_combo = `g'")
}
graph combine mp1 mp2 mp3, cols(3)

**************************************************************************************
* OTHER APPENDIX TABLES
**************************************************************************************

**************************************************************************************
*Figure A1: Gender-Linked Fate by Partisanship, Full Sample
**************************************************************************************

graph bar, over(linked_combo) by(pid_binary)

**************************************************************************************
*Figure A2: Gender-Linked Fate by Partisanship, Women
**************************************************************************************

graph bar if gender==1, over(linked_combo) by(pid_binary)

**************************************************************************************
*Figure A3: Gender-Linked Fate by Partisanship, Men
**************************************************************************************

graph bar if gender==0, over(linked_combo) by(pid_binary)

**************************************************************************************
*Table A1: Descriptive Statistics and Tests of Balance
**************************************************************************************

sort treatment
by treatment: sum age
anova age treatment

sort treatment
by treatment: sum (birthplace)
tab birthplace treatment, chi2

by treatment: sum (uscit)
tab uscit treatment, chi2

by treatment: sum (ethnicity)
tab ethnicity treatment, chi2

by treatment: sum (gender)
tab gender treatment, chi2

by treatment: sum (afaction)
anova afaction treatment

by treatment: sum (incometax)
anova incometax treatment

by treatment: sum (birthcon)
anova birthcon treatment

by treatment: sum (voucher)
anova voucher treatment

by treatment: sum (mlinked_combo)
anova mlinked_combo treatment

by treatment: sum (wmlinked_combo)
anova wmlinked_combo treatment

by treatment: sum (polint1)
anova polint1 treatment

by treatment: sum (partbat_1)
tab partbat_1 treatment, chi2

by treatment: sum (partbat_2)
tab partbat_2 treatment, chi2

by treatment: sum (partbat_3)
tab partbat_3 treatment, chi2

by treatment: sum (partbat_4)
tab partbat_4 treatment, chi2

by treatment: sum (partbat_5)
tab partbat_5 treatment, chi2

by treatment: sum (priorpart)
anova priorpart treatment

by treatment: sum (rel)
tab rel treatment, chi2

by treatment: sum (income)
anova income treatment

by treatment: sum (education)
anova education treatment

by treatment: sum (pid_combo)
anova pid_combo treatment
tab pid_combo treatment, chi2

by treatment: sum (ideology)
anova ideology treatment


**************************************************************************************
*Table A2: Effect of a Descriptive Representative on Likely Political Engagement among 
*those in the Neutral Conditions who Complied with the Treatment
**************************************************************************************

/*what if kick out inattentive people*/
/*start with analysis of neutral conditions-The findings are combined in table 1*/
reg prvote shared_gender if neutral==1 & repgender_correct==1 & birthcontrol_correct==1
reg prvote shared_gender if neutral==1 & gender==1 & repgender_correct==1 & birthcontrol_correct==1
reg prvote shared_gender if neutral==1 & gender==0 & repgender_correct==1 & birthcontrol_correct==1

reg prdonate shared_gender if neutral==1 & repgender_correct==1 & birthcontrol_correct==1
reg prdonate shared_gender if neutral==1 & gender==1 & repgender_correct==1 & birthcontrol_correct==1
reg prdonate shared_gender if neutral==1 & gender==0 & repgender_correct==1 & birthcontrol_correct==1

reg time_based shared_gender if neutral==1 & repgender_correct==1 & birthcontrol_correct==1
reg time_based shared_gender if neutral==1 & gender==1 & repgender_correct==1 & birthcontrol_correct==1
reg time_based shared_gender if neutral==1 & gender==0 & repgender_correct==1 & birthcontrol_correct==1

**************************************************************************************
*Table A3a: OLS on Engagement Measures
**************************************************************************************

reg prvote shared_gender gender fem_shared_gender if neutral==1
lincom shared_gender + [1]*fem_shared_gender

reg prdonate shared_gender gender fem_shared_gender if neutral==1
lincom shared_gender + [1]*fem_shared_gender

reg time_based shared_gender gender fem_shared_gender if neutral==1
lincom shared_gender + [1]*fem_shared_gender

**************************************************************************************
*Table A3b: OLS on Separate Time-Based Measures
**************************************************************************************

reg prplcy shared_gender gender fem_shared_gender if neutral==1
lincom shared_gender + [1]*fem_shared_gender

reg prgovas shared_gender gender fem_shared_gender if neutral==1
lincom shared_gender + [1]*fem_shared_gender

reg prthm shared_gender gender fem_shared_gender if neutral==1
lincom shared_gender + [1]*fem_shared_gender

**************************************************************************************
*Table A4: OLS on Exposure to a Descriptive Representative relative to a Non-Descriptive 
*Representative, Separating Time Measures
**************************************************************************************

reg prplcy shared_gender if neutral==1
reg prplcy shared_gender if neutral==1 & gender==1
reg prplcy shared_gender if neutral==1 & gender==0

reg prgovas shared_gender if neutral==1
reg prgovas shared_gender if neutral==1 & gender==1
reg prgovas shared_gender if neutral==1 & gender==0

reg prthm shared_gender if neutral==1
reg prthm shared_gender if neutral==1 & gender==1
reg prthm shared_gender if neutral==1 & gender==0

**************************************************************************************
*Table A5a: OLS on Exposure to a Descriptive Representative relative to a Non-Descriptive
*Representative among Women Respondents
**************************************************************************************

reg prvote shared_gender linked_combo shared_linked if gender==1 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked if gender==1 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prplcy shared_gender linked_combo shared_linked if gender==1 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prgovas shared_gender linked_combo shared_linked if gender==1 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prthm shared_gender linked_combo shared_linked if gender==1 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked if gender==1 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

**************************************************************************************
*Table A5b: OLS on Exposure to a Descriptive Representative relative to a Non-Descriptive
*Representative among Compliers and Women Respondents
**************************************************************************************

reg prvote shared_gender linked_combo shared_linked if gender==1 & neutral==1 & repgender_correct==1 & birthcontrol_correct==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked if gender==1 & neutral==1 & repgender_correct==1 & birthcontrol_correct==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked if gender==1 & neutral==1 & repgender_correct==1 & birthcontrol_correct==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

**************************************************************************************
*Table A5c: OLS on Exposure to a Descriptive Representative relative to a Non-Descriptive
*Representative among Male Respondents
**************************************************************************************

reg prvote shared_gender linked_combo shared_linked if gender==0 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked if gender==0 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prplcy shared_gender linked_combo shared_linked if gender==0 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prgovas shared_gender linked_combo shared_linked if gender==0 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prthm shared_gender linked_combo shared_linked if gender==0 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked if gender==0 & neutral==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

**************************************************************************************
*Table A6: Effect of a Descriptive vs. a Non-Descriptive Representative on Likely 
*Engagement among those in the Policy Information Conditions
**************************************************************************************

reg prvote shared_gender match_issues if neutral==0
reg prvote shared_gender match_issues if neutral==0 & gender==1
reg prvote shared_gender match_issues if neutral==0 & gender==0

reg prdonate shared_gender match_issues if neutral==0
reg prdonate shared_gender match_issues if neutral==0 & gender==1
reg prdonate shared_gender match_issues if neutral==0 & gender==0

reg time_based shared_gender match_issues if neutral==0
reg time_based shared_gender match_issues if neutral==0 & gender==1
reg time_based shared_gender match_issues if neutral==0 & gender==0

**************************************************************************************
*Table A7a: Effect of a Descriptive vs. a Non-Descriptive Representative on Likely 
*Political Engagement among Compliers and those in the Policy Information Conditions
**************************************************************************************

reg prvote shared_gender match_issues if neutral==0 & repgender_correct==1 & birthcontrol_correct==1
reg prvote shared_gender match_issues if neutral==0 & gender==1 & repgender_correct==1 & birthcontrol_correct==1
reg prvote shared_gender match_issues if neutral==0 & gender==0 & repgender_correct==1 & birthcontrol_correct==1

reg prdonate shared_gender match_issues if neutral==0 & repgender_correct==1 & birthcontrol_correct==1
reg prdonate shared_gender match_issues if neutral==0 & gender==1 & repgender_correct==1 & birthcontrol_correct==1
reg prdonate shared_gender match_issues if neutral==0 & gender==0 & repgender_correct==1 & birthcontrol_correct==1

reg time_based shared_gender match_issues if neutral==0 & repgender_correct==1 & birthcontrol_correct==1
reg time_based shared_gender match_issues if neutral==0 & gender==1 & repgender_correct==1 & birthcontrol_correct==1
reg time_based shared_gender match_issues if neutral==0 & gender==0 & repgender_correct==1 & birthcontrol_correct==1

**************************************************************************************
*Table A7b: Effect of a Descriptive vs. a Non-Descriptive Representative on Likely 
*Political Engagement among those in the Policy Information Conditions
**************************************************************************************

reg prplcy shared_gender match_issues if neutral==0
reg prplcy shared_gender match_issues if neutral==0 & gender==1
reg prplcy shared_gender match_issues if neutral==0 & gender==0

reg prgovas shared_gender match_issues if neutral==0
reg prgovas shared_gender match_issues if neutral==0 & gender==1
reg prgovas shared_gender match_issues if neutral==0 & gender==0

reg prthm shared_gender match_issues if neutral==0
reg prthm shared_gender match_issues if neutral==0 & gender==1
reg prthm shared_gender match_issues if neutral==0 & gender==0

**************************************************************************************
*Table A8: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive
*Representative by Gender-Linked Fate among Woman Respondents in the Policy Information 
*Conditions
**************************************************************************************

reg prvote shared_gender linked_combo shared_linked match_issues if gender==1 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked match_issues if gender==1 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked match_issues if gender==1 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked


**************************************************************************************
*Table A9a: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive
*Representative by Gender-Linked Fate among Compliers and Woman Respondents in the Policy 
*Information Conditions
**************************************************************************************

reg prvote shared_gender linked_combo shared_linked match_issues if gender==1 & neutral==0 & repgender_correct==1 & birthcontrol_correct==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked match_issues if gender==1 & neutral==0 & repgender_correct==1 & birthcontrol_correct==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked match_issues if gender==1 & neutral==0 & repgender_correct==1 & birthcontrol_correct==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

**************************************************************************************
*Table A9b: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive 
*Representative by Gender-Linked Fate among Male Respondents in the Policy Information Conditions
**************************************************************************************

reg prvote shared_gender linked_combo shared_linked match_issues  if gender==0 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked match_issues  if gender==0 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked match_issues if gender==0 & neutral==0
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

**************************************************************************************
*Table A10a: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive 
*Representative by Gender-Linked Fate among Women Respondents with Low Policy Alignment
**************************************************************************************

reg prvote shared_gender if neutral==0 & gender==1 & match_issues<3
reg prdonate shared_gender if neutral==0 & gender==1 & match_issues<3
reg time_based shared_gender if neutral==0 & gender==1 & match_issues<3

reg prvote shared_gender linked_combo shared_linked if gender==1 & neutral==0 & match_issues<3
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked if gender==1 & neutral==0 & match_issues<3
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked if gender==1 & neutral==0 & match_issues<3
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

**************************************************************************************
*Table A10b: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive 
*Representative by Gender-Linked Fate among Women Respondents with High Policy Alignment
**************************************************************************************

reg prvote shared_gender if neutral==0 & gender==1 & match_issues>2
reg prdonate shared_gender if neutral==0 & gender==1 & match_issues>2
reg time_based shared_gender if neutral==0 & gender==1 & match_issues>2

reg prvote shared_gender linked_combo shared_linked if gender==1 & neutral==0 & match_issues>2
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked if gender==1 & neutral==0 & match_issues>2
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked if gender==1 & neutral==0 & match_issues>2
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

**************************************************************************************
*Table A11: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive 
*Representative by Gender-Linked Fate among Democratic Women Respondents in the Neutral 
*Condition
**************************************************************************************

reg prvote shared_gender linked_combo shared_linked if gender==1 & neutral==1 & democrat==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg prdonate shared_gender linked_combo shared_linked if gender==1 & neutral==1 & democrat==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

reg time_based shared_gender linked_combo shared_linked if gender==1 & neutral==1 & democrat==1
lincom shared_gender + [1]*shared_linked
lincom shared_gender + [2]*shared_linked
lincom shared_gender + [3]*shared_linked

**************************************************************************************
*Table A12a: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive 
*Representative by Education among Women Respondents in the Neutral Condition
**************************************************************************************

reg prvote shared_gender high_edu shared_edu if gender==1 & neutral==1 
lincom shared_gender + [1]*shared_edu

reg prdonate shared_gender high_edu shared_edu if gender==1 & neutral==1 
lincom shared_gender + [1]*shared_edu

reg time_based shared_gender high_edu shared_edu if gender==1 & neutral==1 
lincom shared_gender + [1]*shared_edu

**************************************************************************************
*Table A12b: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive 
*Representative by Education among Women Respondents in the Policy Condition
**************************************************************************************

reg prvote shared_gender high_edu shared_edu match_issues if gender==1 & neutral==0 
lincom shared_gender + [1]*shared_edu

reg prdonate shared_gender high_edu shared_edu match_issues if gender==1 & neutral==0 
lincom shared_gender + [1]*shared_edu

reg time_based shared_gender high_edu shared_edu match_issues if gender==1 & neutral==0 
lincom shared_gender + [1]*shared_edu

**************************************************************************************
*Table A13a: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive 
*Representative by Education among Women Respondents with Income as Covariate
**************************************************************************************

regress prvote shared_gender##c.linked_combo income if neutral==1 & gender==1
margins, dydx(shared_gender) at(linked_combo=(1 (1) 3))

regress prdonate shared_gender##c.linked_combo income if neutral==1 & gender==1
margins, dydx(shared_gender) at(linked_combo=(1 (1) 3))

regress time_based shared_gender##c.linked_combo income if neutral==1 & gender==1
margins, dydx(shared_gender) at(linked_combo=(1 (1) 3))

**************************************************************************************
*Table A13b: OLS on Exposure to a Descriptive Representative relative to a non-Descriptive 
*Representative by Education among Women Respondents with Education as Covariate
**************************************************************************************

regress prvote shared_gender##c.linked_combo education if neutral==1 & gender==1
margins, dydx(shared_gender) at(linked_combo=(1 (1) 3))

regress prdonate shared_gender##c.linked_combo education if neutral==1 & gender==1
margins, dydx(shared_gender) at(linked_combo=(1 (1) 3))

regress time_based shared_gender##c.linked_combo education if neutral==1 & gender==1
margins, dydx(shared_gender) at(linked_combo=(1 (1) 3))

**************************************************************************************
*Table C1: Effects of Descriptive Representation, Study 1
**************************************************************************************

gen pval=.


reg prvote shared_gender if neutral==1
test shared_gender
replace pval=r(p) in 1

reg prvote shared_gender if neutral==1 & gender==1
test shared_gender
replace pval=r(p) in 2

reg prvote shared_gender if neutral==1 & gender==0
test shared_gender
replace pval=r(p) in 3

reg prdonate shared_gender if neutral==1
test shared_gender
replace pval=r(p) in 4

reg prdonate shared_gender if neutral==1 & gender==1
test shared_gender
replace pval=r(p) in 5

reg prdonate shared_gender if neutral==1 & gender==0
test shared_gender
replace pval=r(p) in 6

reg time_based shared_gender if neutral==1
test shared_gender
replace pval=r(p) in 7

reg time_based shared_gender if neutral==1 & gender==1
test shared_gender
replace pval=r(p) in 8

reg time_based shared_gender if neutral==1 & gender==0
test shared_gender
replace pval=r(p) in 9

qqvalue pval, method(hochberg) qvalue(qval)
list pval qval in 1/9

**************************************************************************************
*Table C2: Moderation of Gender-Linked Fate, Study 1
**************************************************************************************

drop pval_m
drop qval_m
gen pval_m=.

regress prvote shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + _b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 1

regress prvote shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 2

regress prvote shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + 3*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 3

regress prvote shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 4

regress prvote shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 5

regress prvote shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 3* _b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 6

regress prdonate shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + _b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 7

regress prdonate shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 8

regress prdonate shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + 3*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 9

regress prdonate shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 10

regress prdonate shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 11

regress prdonate shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 3* _b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 12

regress time_based shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 13

regress time_based shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 14

regress time_based shared_gender##c.linked_combo if neutral==1 & gender==1
lincom _b[1.shared_gender] + 3* _b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 15

regress time_based shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 16

regress time_based shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 17

regress time_based shared_gender##c.linked_combo if neutral==1 & gender==0
lincom _b[1.shared_gender] + 3* _b[1.shared_gender#c.linked_combo]
replace pval_m=r(p) in 18

qqvalue pval_m, method(simes) qvalue(qval_m)
list pval_m qval_m in 1/18

**************************************************************************************
*Table C3: Effect of Descriptive Representative with Policy Information, Study 1
**************************************************************************************

drop pval_p
drop qval_p
gen pval_p=.

reg prvote shared_gender match_issues if neutral==0 & gender==1
test shared_gender
replace pval_p=r(p) in 1

reg prvote shared_gender match_issues if neutral==0 & gender==0
test shared_gender
replace pval_p=r(p) in 2

reg prdonate shared_gender match_issues if neutral==0 & gender==1
test shared_gender
replace pval_p=r(p) in 3

reg prdonate shared_gender match_issues if neutral==0 & gender==0
test shared_gender
replace pval_p=r(p) in 4

reg time_based shared_gender match_issues if neutral==0 & gender==1
test shared_gender
replace pval_p=r(p) in 5

reg time_based shared_gender match_issues if neutral==0 & gender==0
test shared_gender
replace pval_p=r(p) in 6

reg prvote shared_gender match_issues if neutral==0 & gender==1
test match_issues
replace pval_p=r(p) in 7

reg prvote shared_gender match_issues if neutral==0 & gender==0
test match_issues
replace pval_p=r(p) in 8

reg prdonate shared_gender match_issues if neutral==0 & gender==1
test match_issues
replace pval_p=r(p) in 9

reg prdonate shared_gender match_issues if neutral==0 & gender==0
test match_issues
replace pval_p=r(p) in 10

reg time_based shared_gender match_issues if neutral==0 & gender==1
test match_issues
replace pval_p=r(p) in 11

reg time_based shared_gender match_issues if neutral==0 & gender==0
test match_issues
replace pval_p=r(p) in 12

qqvalue pval_p, method(hochberg) qvalue(qval_p)
list pval_p qval_p in 1/12

**************************************************************************************
*Table C4: Moderation of Linked Fate with Policy Information, Study 1
**************************************************************************************

drop pval_mp
drop qval_mp
gen pval_mp=.

reg prvote shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 1

reg prvote shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 2

reg prvote shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 3*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 3

reg prvote shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 4

reg prvote shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 5

reg prvote shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 3*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 6

reg prdonate shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 7

reg prdonate shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 8

reg prdonate shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 3*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 9

reg prdonate shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 10

reg prdonate shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 11

reg prdonate shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 3*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 12

reg time_based shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 13

reg time_based shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 14

reg time_based shared_gender##c.linked_combo match_issues if neutral==0 & gender==1
lincom _b[1.shared_gender] + 3*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 15

reg time_based shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 1*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 16

reg time_based shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 2*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 17

reg time_based shared_gender##c.linked_combo match_issues if neutral==0 & gender==0
lincom _b[1.shared_gender] + 3*_b[1.shared_gender#c.linked_combo]
replace pval_mp=r(p) in 18

qqvalue pval_mp, method(simes) qvalue(qval_mp)
list pval_mp qval_mp in 1/18



